/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package View;

import View.View;
import com.sun.lwuit.Button;
import com.sun.lwuit.Command;
import com.sun.lwuit.Display;
import com.sun.lwuit.Label;
import com.sun.lwuit.List;
import com.sun.lwuit.TextArea;
import com.sun.lwuit.TextField;
import com.sun.lwuit.animations.CommonTransitions;
import com.sun.lwuit.events.ActionEvent;
import com.sun.lwuit.events.ActionListener;
import com.sun.lwuit.geom.Dimension;
import hackathon.activity_mokde;
import java.io.DataOutputStream;
import javax.microedition.io.Connector;
import javax.microedition.io.SocketConnection;
import testmenu.MainMidlet;

/**
 *
 * @author Windsea
 */
public class infoForm extends View {
//private final Button btnEat;
    //rivate final Button btnRest;
    
    private TextField txtemail;
    private TextArea txaWrite;
    private Label lbEmail;
    private Label lbWrite;
    private Command cmdBack;
    //private final List list;

    public infoForm(final MainMidlet midlet) {
        super(midlet);
        setTransitionOutAnimator(CommonTransitions.createSlide(
                CommonTransitions.SLIDE_HORIZONTAL, false, 1000));
        /*
        btnEat = new Button("Ăn uống");
        btnRest = new Button("Nghỉ");
        list = new List();
        */
        txtemail = new TextField("Email");
        txaWrite = new TextArea(1,120);
        txaWrite.setText("Mọi chi tiết xin liên hệ nhóm phát triển"+ "\n" + "quangvucntt@gmail.com");
        txaWrite.setSize(new Dimension(230, 230));
        
        lbEmail = new Label();
        lbWrite= new Label();
        lbEmail.setText("Nhập vào email của bạn");
        lbWrite.setText("Nhập vào nội dung email");
        cmdBack = new Command("") {
            public void actionPerformed(ActionEvent evt) {
                Display.getInstance().setForceFullScreen(true);
                midlet.getmmf().showBack();
                Display.getInstance().getCurrent().refreshTheme();
            }
        };
        setBackCommand(cmdBack);
        txaWrite.setSize(new Dimension(20, 60));
        
        addComponent(txaWrite);
        
    }
}